﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp13
{
    class Duck:Animal,Swim
    {
        private Swim S1;

        public Duck()
        {

        }

        public Duck(string name) {
            this.Name = name;
        }
        public void Swim() {
            Console.WriteLine("我会游泳");
        }
    }
}
